
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class BranchStatisticsPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() => _BranchStatisticsState();
}

class _BranchStatisticsState extends State<BranchStatisticsPage>{
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Container(
          width: double.infinity,
          height: 12,
          color: Color(0xfff7f7f7),
        ),
        Container(
          color: Colors.white,
          padding: EdgeInsets.all(10.0),
          child: Row(
            children: [
              Container(
                width: 3,
                height: 15,
                decoration: BoxDecoration(
                  color: Color(0xff009669),
                  borderRadius: BorderRadius.all(Radius.circular(1))
                ),
              ),
              SizedBox(width: 5,),
              Text('本月走访、商机与放款统计',style: TextStyle(color: Color(0xff333333),fontSize: 14,fontWeight: FontWeight.bold),),
              Spacer(),
              InkWell(
                onTap: (){

                },
                child: Row(
                  children: [
                    Text('全部业务线',style: TextStyle(color: Color(0xff333333),fontSize: 13),),
                    SizedBox(width: 2,),
                    Image.asset('assets/images/ic_arrow_down.png',width: 15,height: 15,)
                  ],
                ),
              )
            ],
          ),
        ),
        Container(
          width: double.infinity,
          height: 1,
          margin: EdgeInsets.only(left: 12,right: 12),
          color: Color(0xfff0f0f0),
        ),
        Container(
          color: Colors.white,
          padding: EdgeInsets.all(10),
          child: Row(
            children: [
              Expanded(
                child: Text('分行名称',style: TextStyle(color: Color(0xff333333),fontSize: 12),textAlign: TextAlign.center,),
              ),
              Expanded(
                child: Text('走访户数',style: TextStyle(color: Color(0xff333333),fontSize: 12),textAlign: TextAlign.center,),
              ),
              Expanded(
                child: Container(
                  width: double.infinity,
                  alignment: Alignment.center,
                  child:InkWell(
                  onTap: (){

                  },
                  child: Row(
                    children: [
                      Spacer(),
                      Text('商机获得',style: TextStyle(color: Color(0xff333333),fontSize: 12),textAlign: TextAlign.center,),
                      Image.asset('assets/images/ic_sort_01.png',width: 12,height: 12,),
                      Spacer(),
                    ],
                  ),
                ),),
              ),
              Expanded(
                child: Container(
                  width: double.infinity,
                  alignment: Alignment.center,
                  child:InkWell(
                  onTap: (){

                  },
                  child: Row(
                    children: [
                      Spacer(),
                      Text('商机成功',style: TextStyle(color: Color(0xff333333),fontSize: 12),),
                      Image.asset('assets/images/ic_sort_02.png',width: 12,height: 12,),
                      Spacer(),
                    ],
                  ),
                ),),              ),
              Expanded(
                child: Container(
                  width: double.infinity,
                  alignment: Alignment.center,
                  child:InkWell(
                  onTap: (){

                  },
                  child: Row(
                    children: [
                      Spacer(),
                      Text('贷款',style: TextStyle(color: Color(0xff333333),fontSize: 12),textAlign: TextAlign.center,),
                      Image.asset('assets/images/ic_sort_01.png',width: 12,height: 12,),
                      Spacer(),
                    ],
                  ),
                ),),              ),
            ],
          ),
        ),
      ],
    );
  }

}